from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
class base_Page:

    def __init__(self,driver):
        self.driver = driver
        self.wait = WebDriverWait(driver,5)

    #用显示等待重新find_element
    def find_element(self,locator):
        return self.wait.until(EC.presence_of_element_located(locator))